package com.bydq.patrolsystem.service.impl;

import com.bydq.patrolsystem.entity.PsSystemconfig;
import com.bydq.patrolsystem.mapper.PsSystemconfigMapper;
import com.bydq.patrolsystem.service.PsSystemconfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 写代码是不可能写代码的啦~~
 * @since 2020-05-22
 */
@Service
public class PsSystemconfigServiceImpl extends ServiceImpl<PsSystemconfigMapper, PsSystemconfig> implements PsSystemconfigService {

    @Autowired
    private PsSystemconfigMapper psSystemconfigMapper;

    @Override
    public boolean del(String configCode) {
        return psSystemconfigMapper.del(configCode);
    }

    @Override
    public boolean upIsStart(String configCode, int isStart) {
        return psSystemconfigMapper.upIsStart(configCode,isStart);
    }

    @Override
    public List<PsSystemconfig> filsList(String configCode) {
        return psSystemconfigMapper.filsList(configCode);
    }

}
